﻿// 公共变量 和函数
@import '~common/scss/public/base-url';
html,
body,
div,
span,
p,
a,
ul,
ol,
li,
dl,
dt,
dd,
img {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol,
li {
    list-style: none;
}

body {
    padding: 0px !important;
    overflow: auto !important;
}


/* 居中容器 */

.container {
    margin: 0 auto;
    @media (min-width: 768px) {
        // width: 750px;
    }
    @media (min-width: 992px) {
        // width: 970px;
    }
    @media (min-width: 1200px) {
        width: 1200px;
    }
}

html,
body {
    width: 100%;
    height: 100%;
}


/*ivu-poptip*/

.ivu-poptip {
    height: 100%;
    .ivu-poptip-rel {
        height: 100%;
    }
}


/*重新定义element ui样式*/

.el-table thead tr th {
    text-align: center;
    background: #EEF1F6;
    color: #2b3245;
    font-size: 14px;
    border: 0;
}

.el-table .el-table__body tr td {
    text-align: center;
    padding: 0;
}

.sampleInfo .el-table td {
    padding: 6px 0;
}

// 公共样式
#cmain {
    background: #F5F7F9;
    padding: 20px;
    width: 100%;
    .main_inner {
        height: auto;
        background: #ffffff;
        border-radius: 10px;
        padding: 30px;
        padding-bottom: 20px;
        box-shadow: 0 0 10px 0 #cfcfcf;
    }
}

#cmain.cmain .el-table,
.el-table__body-wrapper {
    overflow: visible;
}


/*查看分析结果页面 修改样式*/

#cmain {
    .camin-table {
        thead {
            th {
                border-top: 1px solid #ddd;
                border-left: 1px solid #ddd;
            }
        }
    }
    .arrow {
        display: inline-block;
        float: right;
        margin-right: 10px;
        width: 9px;
        height: 16px;
        margin-top: 3px;
        cursor: pointer;
    }
    .arrow-left-gene {
        background: url("/static/icon/arrow.png") no-repeat left top;
    }
    .arrow-right-gene {
        background: url("/static/icon/arrow.png") no-repeat -10px top;
    }
}


/*agGrid*/

.ag-header {
    .ag-header-container {
        .ag-header-group-text {
            margin: auto;
            color: #102d53;
            font-weight: 800;
        }
        .ag-header-cell-text {
            color: #102d53;
            font-weight: 800;
        }
    }
}

.ag-theme-balham .ag-cell {
    border-right: 1px solid #ddd;
}

.ag-theme-balham .ag-header-cell-resize::after {
    height: 31px;
    margin-top: 0;
}

.ag-theme-balham .ag-cell-focus {
    border: 1px solid #ddd;
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
}

// .ivu-message {
//     font-size: 18px;
//     .ivu-icon {
//         font-size: 20px;
//     }
// }
.imgbox {
    display: inline-block;
    line-height: 50%;
    vertical-align: middle;
    div {
        display: inline-block;
        width: 24px;
        height: 28px;
        margin: 10px;
        background: url("/static/icon/fileicon.png") no-repeat;
        background-size: 190% 400%;
    }
    .fastq_R1_on {
        background-position: 0px -1px;
        cursor: pointer;
    }
    .fastq_R1_off {
        background-position: -25px -1px;
    }
    .fastq_R2_on {
        background-position: 0px -28px;
        cursor: pointer;
    }
    .fastq_R2_off {
        background-position: -25px -28px;
    }
    .vcf_on {
        background-position: 0px -58px;
        cursor: pointer;
    }
    .vcf_off {
        background-position: -25px -58px;
    }
    .etc_on {
        background-position: 0px -87px;
        cursor: pointer;
    }
    .etc_off {
        background-position: -25px -87px;
    }
}

.ivu-poptip-inner {
    white-space: normal;
}

.ag-cell .nselects {
    width: 16px;
    height: 16px;
    display: block;
    background: #fff;
    margin-top: 5px;
    margin-left: 10px;
    border: 1px solid #bbb;
    border-radius: 50%;
}

.ag-cell .selects {
    width: 16px;
    height: 16px;
    display: block;
    background: #fff;
    margin-top: 5px;
    margin-left: 10px;
    border: 1px solid #409EFF;
    border-radius: 50%;
    position: relative;
    &::after {
        width: 8px;
        height: 8px;
        border-radius: 100%;
        background-color: #409EFF;
        content: "";
        position: absolute;
        left: 2.5px;
        top: 2.5px;
    }
}

.report-table .el-table thead tr th {
    background: #f3f3f3;
}

.el-submenu__title {
    width: 230px;
    .el-menu-item {
        width: 230px;
        border-bottom: none;
    }
}

.el-submenu .el-menu-item {
    height: 50px;
    line-height: 50px;
    padding: 0 45px;
    min-width: 220px;
}

.el-input {
    position: relative;
    font-size: 14px;
    width: 90%;
}

.samplefile {
    .el-table .el-table__body tr td {
        padding: 12px 0;
    }
}

.modaltable {
    .el-table--border,
    .el-table--group {
        border: 1px solid #cfcfcf;
    }
    .el-table thead tr th {
        background: #fff;
    }
    .el-table td,
    .el-table th.is-leaf {
        border-bottom: 1px solid #cfcfcf;
    }
    .el-table--border td,
    .el-table--border th,
    .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
        border-right: 1px solid #cfcfcf;
    }
}


/*家树系统*/

#family-home {
    .el-table {
        tr {
            td {
                padding: 6px 0;
            }
        }
    }
    .el-form {
        .el-form-item {
            .el-form-item__content::after {
                display: none;
            }
        }
    }
    .MyMainTable {
        .el-form-item--mini {
            .el-form-item__content {
                margin-left: 0px !important;
            }
        }
    }
}

.tumour-table,
.tumourSample,
.samplefile,
.doctorlist,
.cmain-table,
.samplelist,
.myreport-table,
.rare-list-table,
.cont-main,
.sampleInfo {
    position: relative;
    .empty {
        height: 30px;
        line-height: 30px;
        width: 245px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
    }
}

.samplefile {
    .empty {
        top: 50px;
    }
}

.sampleInfo {
    .empty {
        top: 65px;
    }
}

.rare-list-table {
    .empty {
        bottom: 0;
    }
}

.ag-theme-balham .ag-tool-panel {
    border-left: 1px solid #BDC3C7;
    border-right: none !important;
}

#family-lefts {
    .collapse {
        display: block;
        .el-submenu,
        .is-active {
            width: 65px;
            .el-submenu__title {
                background: #2B3245 !important;
            }
        }
        .el-submenu__title {
            width: 100% !important;
        }
    }
}

#cmain {
    .content {
        form {
            &>div.rare:nth-of-type(3) {
                .ivu-form-item:nth-of-type(2) {
                    .ivu-form-item-content {
                        .ivu-form-item-error-tip {
                            top: 89% !important;
                        }
                    }
                }
            }
            &>div.rares:nth-of-type(3) {
                .ivu-form-item:nth-of-type(2) {
                    .ivu-form-item-error-tip {
                        top: 89% !important;
                    }
                }
            }
        }
    }
}

.main_inner {
    .ivu-select-show-clear {
        .ivu-select-selection {
            .ivu-icon-ios-close {
                display: none;
            }
            .ivu-icon-arrow-down-b {
                display: block;
            }
            &:hover {
                .ivu-icon-ios-close {
                    display: block;
                }
                .ivu-icon-arrow-down-b {
                    display: none;
                }
            }
        }
    }
}

//表单元素
.el-card {
    border: 0px;
    &.is-always-shadow {
        box-shadow: none;
    }
    .el-card__header {
        padding: 15px 0;
        font-size: 16px;
        font-weight: 800;
        color: rgba(102, 102, 102, 1);
        border-bottom: 1px solid #dcdfe6;
    }
}

.footer-card {
    .el-card__header {
        border-bottom: 0px;
    }
}

.gene-item {
    .el-table__row {
        .el-input__inner {
            height: 28px;
            line-height: 28px;
        }
    }
}

.family-tree-mask {
    @media screen and (min-width: 1600px) {
        .el-loading-spinner {
            top: 450px !important;
        }
    }
    @media (min-width: 1400px) and (max-width: 1600px) {
        .el-loading-spinner {
            top: 400px !important;
        }
    }
    @media (max-width: 1400px) {
        .el-loading-spinner {
            top: 350px !important;
        }
    }
}

// .uploadModel{
//     .ivu-tabs{
//         .ivu-upload{
//             input{
//                 display:block !important;
//             }
//         }
//     }
// }
.uploadModel.v-transfer-dom .el-table .el-table__body tr td {
    text-align: left;
}

.tree-list-table tbody {
    tr {
        td {
            line-height: 40px !important;
            height: 40px !important;
        }
        &:hover>td {
            background: #fff !important
        }
    }
}


/**肿瘤产品迁移 2018-11-02**/

//新建病例
.vertical-center-modal {
    .ivu-modal-header {
        background: #457aae;
        border-bottom: 0;
        p,
        .ivu-modal-header-inner {
            color: #fff;
            font-size: 18px;
            font-weight: normal;
            text-align: center;
        }
    }
    .ivu-modal-close {
        top: 2px;
        .ivu-icon-ios-close-empty {
            color: lighten(#457aae, 40%);
            font-size: 40px;
            &:hover {
                color: #fff;
            }
        }
    }
    .ivu-modal-body {
        padding: 0px;
    }
    .ivu-modal-footer {
        display: none;
    }
}

//肿瘤迁移 model
.tumourModel {
    .ivu-modal-header {
        background: #457aae;
        border-bottom: 0;
        p,
        .ivu-modal-header-inner {
            color: #fff;
            font-size: 18px;
            font-weight: normal;
            text-align: center;
        }
    }
    .ivu-modal-close {
        top: 2px;
        .ivu-icon-ios-close-empty {
            color: lighten(#457aae, 40%);
            font-size: 40px;
            &:hover {
                color: #fff;
            }
        }
    }
    .ivu-modal-body {
        padding: 0px;
    }
    .upload {
        .ivu-col-span-24 {
            float: none;
        }
    }
}

.newtumour,
.tumourModel {
    //病人信息
    .ivu-form-item {
        margin-bottom: 0;
        +.ivu-form-item {
            margin-top: 25px;
        }
        // 文字
        .ivu-form-item-label {
            font-size: $form-font-size;
            padding-top: ($form-item-height - $form-font-size) / 2;
        }
        // 输入框
        .ivu-input,
        .ivu-form-item-content {
            font-size: $form-font-size;
            min-height: $form-item-height;
            line-height: $form-item-height;
        }
        .ivu-form-item-content {
            width: $form-item-width;
        }
        .ivu-input-icon {
            width: $form-item-height;
            height: $form-item-height;
            line-height: $form-item-height;
        }
        .ivu-input-group-prepend {
            background: $form-item-bg-color;
            padding: 0;
            width: $form-item-width/9.33;
            color: #666;
            border-radius: 4px;
            font-size: $form-font-size/0.875;
        }
        // 下拉菜单
        .ivu-select-single {
            .ivu-select-selection {
                &,
                .ivu-select-placeholder,
                .ivu-select-selected-value {
                    font-size: $form-font-size;
                    height: $form-item-height;
                }
                .ivu-select-placeholder,
                .ivu-select-selected-value {
                    line-height: $form-item-height;
                }
            }
        }
        .ivu-select-input {
            height: $form-item-height;
        }
        // 日期选择
        .ivu-date-picker {
            width: 100%;
        }
    }
    .sample-title {
        height: 60px;
        border-bottom: 1px solid #ccc;
        line-height: 60px;
        font-size: 22px;
        text-indent: 1em;
    }
    .ivu-modal-footer {
        display: none;
    }
    .sample-main {
        padding: 20px 40px 40px;
        font-size: 18px;
        border-bottom: 1px solid #ccc;
        .stitle {
            font-size: 18px;
            border-bottom: 1px solid #ccc;
            padding-bottom: 20px;
        }
    }
    .sample-inner {
        margin-top: 20px;
        .el-table th .cell {
            // text-align: left;
        }
        .ivu-btn.build {
            padding: 6px 10px;
        }
        .ivu-form-item-content {
            width: 100%;
        }
        .ivu-form-item+.ivu-form-item {
            margin-top: 0;
        }
        .tables+.tables {
            margin-top: 20px;
        }
        .tables {
            .ivu-form-item+.ivu-form-item {
                margin-left: 150px;
            }
        }
    }
    .sample-footer {
        padding: 20px;
        button {
            margin-left: 355px;
        }
    }
    .demo-tabs-style2>.ivu-tabs.ivu-tabs-card>.ivu-tabs-bar .ivu-tabs-tab {
        border-radius: 0;
        background: #fff;
    }
    .demo-tabs-style2>.ivu-tabs.ivu-tabs-card>.ivu-tabs-bar .ivu-tabs-tab-active {
        border-top: 1px solid #3399ff;
    }
    .demo-tabs-style2>.ivu-tabs.ivu-tabs-card>.ivu-tabs-bar .ivu-tabs-tab-active:before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: #3399ff;
        position: absolute;
        top: 0;
        left: 0;
    }
}

.bian {
    color: #5095C0;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
}

.ivu-layout-sider-collapsed {
    .myCustom,
    {
        left: 30px !important;
    }
    .taskstyle {
        left: 28px !important;
    }
}

.el-loading-mask {
    z-index: 1000 !important;
}

.upload {
    overflow: hidden;
    .el-table .el-table__body tr td {
        text-align: left;
    }
}

.ACMG{
    .ivu-modal{
      top: 235px;
      height: 600px;
      .ivu-modal-header{
        .ivu-modal-header p, .ivu-modal-header-inner{
          font-size: 16px;
          color: #666;
          font-family: Roboto;
        } 
      }
      .ivu-btn-text {
        width: 80px;
        border-radius: 4px;
        color: rgba(16, 16, 16, 1);
        font-size: 14px;
        text-align: center;
        font-family: Microsoft Yahei;
        border: 1px solid rgba(220, 223, 230, 1);
        }
      .ivu-btn-primary{
        width: 80px;
        border-radius: 4px;
        background-color: rgba(69, 120, 173, 1);
        color: rgba(255, 255, 255, 1);
        font-size: 14px;
        text-align: center;
        font-family: Microsoft Yahei;
        border: 1px solid rgba(255, 255, 255, 0);
        }
    }
    // .ivu-checkbox-input{
    //     width: 16px;
    //     height: 16px;
    //     line-height: 20px;
    //     text-align: center;
    //     border: 1px solid rgba(187, 187, 187, 1);
        
    // }
    // .ivu-checkbox-inner{
    //     width: 16px;
    //     height: 16px;
    //     background: color #f2f2f2;;

    // }
  }
.CheckboxP{
    float:right;
    width:658px;
    margin-left: 10px;
  }